.class public Lcom/estrongs/android/ui/view/PopMultiWindowGrid;
.super Landroid/widget/LinearLayout;
.source "PopMultiWindowGrid.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/os/Handler;

.field private f:Landroid/widget/ImageView;

.field private g:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 7
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 8
    iput-object p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    .line 9
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;)Landroid/widget/ImageView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    return-object p0
.end method

.method private a()V
    .locals 3

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0193

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 4
    invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    const v1, 0x7f090530

    .line 5
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    const v1, 0x7f090b60

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->c:Landroid/widget/TextView;

    const v1, 0x7f0905dd

    .line 7
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->f:Landroid/widget/ImageView;

    .line 8
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/ui/theme/b;->l()Z

    const v1, 0x7f0904c7

    .line 9
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->d:Landroid/widget/ImageView;

    const/4 v1, 0x1

    .line 10
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setFocusable(Z)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setFocusable(Z)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    new-instance v1, Lcom/estrongs/android/ui/view/PopMultiWindowGrid$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid$a;-><init>(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    return-void
.end method

.method private a(II)V
    .locals 1

    .line 41
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 42
    iput p1, v0, Landroid/os/Message;->what:I

    .line 43
    iput p2, v0, Landroid/os/Message;->arg1:I

    .line 44
    iget-object p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->e:Landroid/os/Handler;

    if-eqz p1, :cond_0

    .line 45
    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;II)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a(II)V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->g:I

    return p0
.end method


# virtual methods
.method public a(I)V
    .locals 4

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    .line 14
    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    invoke-virtual {v0}, Les/hy;->d()I

    move-result v0

    .line 15
    iget v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->g:I

    if-lt v1, v0, :cond_0

    return-void

    .line 16
    :cond_0
    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->g:I

    invoke-virtual {v0, v1}, Les/hy;->a(I)Les/gy;

    move-result-object v0

    if-eqz p1, :cond_1

    .line 17
    iget v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->g:I

    invoke-virtual {p1, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->i(I)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 18
    iget-object v2, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 19
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->c:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    invoke-virtual {v0, v2}, Les/gy;->d(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 20
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    const/high16 v2, 0x40c00000    # 6.0f

    invoke-static {v1, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v1

    .line 21
    iget v2, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->g:I

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v3

    invoke-virtual {v3}, Les/hy;->c()I

    move-result v3

    if-eq v2, v3, :cond_2

    .line 22
    iget-object v2, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v1, v1, v1, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 23
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->f:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    .line 24
    :cond_2
    iget-object v2, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v1, v1, v1, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 25
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->f:Landroid/widget/ImageView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 26
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    new-instance v2, Lcom/estrongs/android/ui/view/PopMultiWindowGrid$b;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid$b;-><init>(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 27
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->b:Landroid/widget/ImageView;

    new-instance v2, Lcom/estrongs/android/ui/view/PopMultiWindowGrid$c;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid$c;-><init>(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 28
    iget-object v1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->d:Landroid/widget/ImageView;

    new-instance v2, Lcom/estrongs/android/ui/view/b;

    invoke-direct {v2, p0, v0, p1}, Lcom/estrongs/android/ui/view/b;-><init>(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;Les/gy;Lcom/estrongs/android/pop/view/FileExplorerActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public synthetic a(Les/gy;Lcom/estrongs/android/pop/view/FileExplorerActivity;Landroid/view/View;)V
    .locals 9

    .line 29
    invoke-virtual {p1}, Les/gy;->c()Ljava/lang/String;

    move-result-object p1

    const-string p3, "#home_page#"

    invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 30
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p1

    invoke-virtual {p1}, Les/b00;->i()Z

    move-result p1

    if-nez p1, :cond_0

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a:Landroid/content/Context;

    const-string p2, "window_delete_home"

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    return-void

    .line 32
    :cond_0
    invoke-virtual {p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object p1

    invoke-virtual {p1}, Les/hy;->d()I

    move-result p1

    const/4 p2, 0x1

    if-ne p1, p2, :cond_1

    const p1, 0x7f1104c5

    .line 33
    invoke-static {p1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    return-void

    :cond_1
    const/4 p1, 0x4

    .line 34
    invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 35
    new-instance p1, Landroid/view/animation/ScaleAnimation;

    const/high16 v1, 0x3f800000    # 1.0f

    const/4 v2, 0x0

    const/high16 v3, 0x3f800000    # 1.0f

    const/4 v4, 0x0

    const/4 v5, 0x1

    const/high16 v6, 0x3f000000    # 0.5f

    const/4 v7, 0x1

    const/high16 v8, 0x3f000000    # 0.5f

    move-object v0, p1

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    const-wide/16 p2, 0x12c

    .line 36
    invoke-virtual {p1, p2, p3}, Landroid/view/animation/ScaleAnimation;->setDuration(J)V

    .line 37
    invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setAnimation(Landroid/view/animation/Animation;)V

    .line 38
    new-instance p2, Lcom/estrongs/android/ui/view/h;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/h;-><init>(Lcom/estrongs/android/ui/view/PopMultiWindowGrid;)V

    .line 39
    invoke-virtual {p1, p2}, Landroid/view/animation/ScaleAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 40
    invoke-virtual {p1}, Landroid/view/animation/ScaleAnimation;->start()V

    return-void
.end method

.method public setHandler(Landroid/os/Handler;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->e:Landroid/os/Handler;

    return-void
.end method

.method public setPosition(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->g:I

    return-void
.end method
